<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddPatternToOpenShopSiteLocationsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->string('patternType', 12)->after('messageFrom')->default('1')->comment('模式类型 1-炸串 2-炸鸡 3-冰饮');
            $table->unsignedTinyInteger('shopPattern')->after('messageFrom')->default(0)->comment('门店模式 2-二 3-叁');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_site_locations', function (Blueprint $table) {
            $table->dropColumn('shopPattern');
            $table->dropColumn('patternType');
        });
    }
}
